package jt.classic.app.dms;

public class TreeNode {
	private String id;

	private String text;

	private String parentId;
	
	private String fullpathId;
	
	private String fullpath;
	
	private String qtip;

	private boolean leaf;
	
	public TreeNode(String id,String text,String parentId,String fullpathId,String fullpath,boolean isLeaf){
		this.id = id;
		this.text = text;
		this.parentId = parentId;
		this.fullpathId = fullpathId;
		this.fullpath = fullpath;
		this.leaf = isLeaf;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean isLeaf) {
		this.leaf = isLeaf;
	}

	public TreeNode() {
	}

	public TreeNode(String id, String parentId, String text) {
		this.id = id;
		this.parentId = parentId;
		this.text = text;
	}

	public boolean isZeroNode() {
		return  "0".equals(this.parentId)
				&& "0".equals(this.text);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getFullpath() {
		return fullpath;
	}

	public void setFullpath(String fullpath) {
		this.fullpath = fullpath;
	}

	public String getFullpathId() {
		return fullpathId;
	}

	public void setFullpathId(String fullpathId) {
		this.fullpathId = fullpathId;
	}

	public String getQtip() {
		return qtip;
	}

	public void setQtip(String qtip) {
		this.qtip = qtip;
	}
}
